$controls/header()$
$controls/navigation()$
<script type="text/javascript" src="scripts/ubb.js"></script>
<script type="text/javascript" src="scripts/editor.js"></script>
$ScriptBlock$
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td width="180" valign="top">$controls/drawer()$ </td>
<td width="5"></td>
<td valign="top">
<form id="EditForm" name="EditForm" method="post" action="" onsubmit="return checksubmit();"  enctype="multipart/form-data">
 $controls/tableheader(
  Caption="发表文章",
  ElementId="postarticle"
  )$
 <table width="100%" cellspacing="0" class="inner">
  <tr class="forumtd">
    <td width="60">类型</td>
    <td width="690">
<input name="type" type="radio" value="0" class="smallbox" checked="checked">
原创
<input name="type" type="radio" value="1" class="smallbox">
转帖
<input name="type" type="radio" value="2" class="smallbox">
翻译</td>
  </tr>
  
  <tr class="forumtd">
    <td>栏目</td>
    <td><select name="columnid" id="columnid" style="width:120px"> 
$Columns:{c|
      <option value="$c.Id$">$c.ColumnName$</option>      
}$
    </select>
	&nbsp;&nbsp;&nbsp;&nbsp;</td>
    </tr>
  <tr class="forumtd">
    <td>分类</td>
    <td><select name="categoryid" id="categoryid" style="width:120px">
      <option selected="selected" value="0">不选择分类</option>
$Categories:{c|
      <option value="$c.Id$">$c.CategoryName$</option>
}$
    </select></td>
    </tr>
  <tr class="forumtd">
    <td>标题</td>
    <td><input name="Title" id="Title" type="text" style="width:98%;" value="$Article.Title$" /></td>
  </tr>
 
  <tr class="forumtd">
    <td colspan="2"> 
	<div class="ubb_button">
<span id="toolbar" class="an"></span>
<p class="partition"></p>
<div class="ubb_div">
<textarea id="editbox" name="editbox" onkeydown="return ctlent(event)" style="height:250px;display:none;">
$Article.RawBody$
</textarea>
<iframe id="editwin" name="editwin" style="height:252px;" scrolling="auto" frameborder="0"></iframe>
</div>
<div style="clear:both; width:99%;">
<div class="left">&nbsp;&nbsp;&nbsp;<input type="button" name="ubbbtn" id="ubbbtn" value="UBB 模式" class="ubb_unselected" onClick="switchmode('ubb', this);" />
&nbsp;
<input type="button" name="designbtn" id="designbtn" value="所见即所得模式" class="ubb_selected" onClick="switchmode('design', this);" />
&nbsp;
<input type="button" name="htmlbtn" id="htmlbtn" value="Html 代码模式" class="ubb_unselected" onClick="switchmode('html', this);" /></div>
<div class="right">[剩余字节：<span class="small t1" id="leftcontentsize"></span>]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="images/ubb/big.gif" onclick="resize(50);" alt="增">&nbsp;<img src="images/ubb/small.gif" onclick="resize(-50);" alt="减"></div>
</div>
<p class="partition"></p>
</div>
<div class="ubb_button an" style="padding:10px 0px; clear:both; width:100%;">
<a href="javascript:onuploadfile()"><img src="{IMGDIR}/icon/att.gif" alt="添加附件">添加附件</a>&nbsp;&nbsp;$if(ShowOptionRow)$&nbsp;&nbsp;&brvbar;&nbsp;&nbsp;<img src="{IMGDIR}/icon/require.gif" alt="浏览限制">&nbsp;浏览限制($Credits.Credit0.Name$):
<input name="Require" style="height:17px" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" size="5" value="$Require$" />
&nbsp;小于或等于<span class="small t1">
<script>document.write(LimitRequire);</script>
$Credits.Credit0.Unit$</span>&nbsp;&nbsp;<span class="t2">&brvbar;</span>&nbsp;&nbsp;<img src="{IMGDIR}/icon/price.gif" alt="主题售价">&nbsp;主题售价($Credits.Credit1.Name$):
<input name="Price" style="height:17px" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" size="5" value="$Price$" />
&nbsp;小于或等于<span class="small t1">
<script>document.write(LimitPrice);</script>
$Credits.Credit1.Unit$</span>&nbsp;&nbsp;<span class="t2">&brvbar;</span>&nbsp;&nbsp;$endif$</div>
<p class="partition"></p>
<div id="filecontainer"></div>	</td>
    </tr>
  <tr class="forumtd">
    <td colspan="2">Tag(多个Tag用“,”分割)
      <input name="tag" type="text" style="width:98%;" value="$Article.Tag$"/></td>
    </tr>
  <tr class="forumtd">
    <td colspan="2">摘要
      （只支持 UBB）
      <textarea name="brief" style="height:100px; width:98%;">$Article.RawBrief$</textarea></td>
  </tr>
</table>
 <span id="votecontainer" style="display:none;"></span>
 $controls/tablefooter()$
  <p align="center"><input type="submit" id="post" name="post" class="button" value="提 交&nbsp;(Ctrl + Enter)"/> 
  <input type="button" value=" 取消 " onclick="history.back();" class="button" /></p>
</form>
</td>
</tr>
</table>  
<script type="text/javascript">
var EditorMode = "EditTopic";
createeditor();
</script>
<script>
checkbyvalue(document.forms["EditForm"].columnid, '$Article.ColumnId$');  
checkbyvalue(document.forms["EditForm"].categoryid, '$Article.CategoryId$');
checkradiobyvalue(document.forms["EditForm"].type, '$Article.AType$');
</script>
$controls/footer()$